package com.echat.business.blog.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.echat.business.blog.dao.BlogTagMapper;
import com.echat.business.blog.model.BlogTag;
import com.echat.business.blog.service.IBlogTagService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chentl123
 * @since 2019-09-10
 */
@Service
public class BlogTagServiceImpl extends ServiceImpl<BlogTagMapper, BlogTag> implements IBlogTagService {
    @Override
    public List<Map<String, Object>> getBloyTagList() {
        Wrapper<BlogTag> wrapper = new EntityWrapper<>();
        wrapper.orderBy("id asc limit 20");
        List<Map<String, Object>> list = selectMaps(wrapper);
        return list;
    }
}
